//
//  AppView.m
//  YinYueBoFang_Forever
//
//  Created by lanou3g on 15/11/8.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "AppView.h"

@implementation AppView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor yellowColor];
        [self p_setViews];
    }
    return self;
}

-(void)p_setViews
{
    //创建uiscoreView
    self.scrollView = [[UIScrollView alloc] init];
    //    self.scrollView.frame = CGRectMake(0, 0, 3000, 667);
    self.scrollView.frame =self.bounds;
    self.scrollView.contentSize = CGSizeMake(375*3, 667);
    
    self.scrollView.backgroundColor = [UIColor grayColor];
    [self addSubview:self.scrollView];
    
}

@end
